
package day01;

import java.util.Scanner;

public class test3 {

	public static void main(String[] args) {
		//scanner类 接收键盘录入的数据
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入stb的成绩：");
		double stbScore = scanner.nextDouble();
		System.out.println("请输入Java的成绩：");
		double javaScore = scanner.nextDouble();
		System.out.println("请输入sql的成绩：");
		double sqlScore = scanner.nextDouble();
		//计算Java和sql成绩的差
		double dvalue = javaScore-sqlScore;
		//计算三门课程的平均分
		double avg = (javaScore+stbScore+sqlScore)/3.0;
		System.out.println("计算Java和sql成绩的差："+dvalue);
		System.out.println("计算三门课程成绩的平均成绩："+avg);

		

	}

}
